# 导包
import requests

# session = requests.session()

response = requests.get(url="http://tpshop-test.itheima.net/index.php?m=Home&c=User&a=verify&type=user_reg")
cookie = response.cookies
print(cookie)
response = requests.post(url="http://tpshop-test.itheima.net/Home/User/reg.html",
                         headers={"Content-Type": "application/x-www-form-urlencoded"},
                         data={'scene': '1',
                               'username': '13883388456',
                               'verify_code': '8888',
                               'password': '123456',
                               'password2': '123456'},
                         cookies=cookie)
print(response.json())
